home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Telnet 2.6.1d1 4⁄26⁄94 Folder / source / main / parse.h < prev    next >
Text File  |  1994-02-10  |  3KB  |  87 lines

  1.  
  2. /* These are the different Telnet option negotiation tags */
  3. #define TEL_EOF            236            /* BYU LSC */
  4. #define    TEL_SE            240            /* end sub-negitiation */                // 360
  5. #define    TEL_NOP            241            /* No Operation */
  6. #define TEL_DM            242            /* data mark */
  7. #define TEL_BREAK        243            
  8. #define TEL_IP            244            /* the ole' Interrupt Process */
  9. #define TEL_AO            245            /* Abort Output */
  10. #define    TEL_AYT            246            /* Are You There???? */
  11. #define    TEL_EC            247            /* Erase Char */
  12. #define TEL_EL            248            /* Erase Line */
  13. #define TEL_GA            249            /* Telnet Go-Ahead */
  14. #define    TEL_SB            250            /* start a Subnegotion */                // 372
  15. #define TEL_WILLTEL     251            /* Negotiate:  Will do this option */    // 373
  16. #define TEL_WONTTEL     252            /* Negotiate:  Wont do this option */    // 374
  17. #define TEL_DOTEL        253            /* Negotiate:  Do this option */        // 375
  18. #define TEL_DONTTEL     254            /* Negotiate:  Dont do this option */    // 376
  19.  
  20. /* these are the rest of the defines needed for the option negitiations */
  21. #define STNORM                0            /* parsing data normal */
  22. #define    NEGOTIATE            1            /* Subnegotiation data follows */
  23. #define ESCFOUND             5            /* we have found an ESC sequence */
  24. #define IACFOUND             6            /* negotiation data follows */
  25. #define    SEXECUTE            200
  26. #define    IAC                    255            /* signals negotiation data is coming */
  27. #define GS                    29            /* we can drop into TEK from here */
  28.  
  29.  
  30. /* these are some of the various options that we can negotiate about */
  31. #define N_BINARY             0            /* binary data transfer */
  32. #define N_ECHO                1            /* for local echo stuff */
  33. #define N_SGA                3            /* Go ahead */
  34. #define N_STATUS            5        
  35. #define N_TIMING            6            /* timing mark */
  36. #define    N_TERMTYP            24            /* set the terminal type */
  37. #define N_NAWS                31            /* Negotiate About Window Size */
  38. #define    N_TERMSPEED            32            /* how fast can we go? */    
  39. #define N_REMOTEFLOW        33            /* do Remote Flow Control */
  40. #define N_LINEMODE             34            /* Ah yes, the infamous Line Mode option */
  41.     #define L_MODE         1
  42.     #define L_FORWARDMASK 2
  43.     #define L_SLC         3 
  44. #define N_AUTHENTICATION    37            /* Authentication */
  45. #define N_ENCRYPT            38            /* Encryption */
  46.  
  47.  
  48. /* Values for LINEMODE MODE */
  49. #define L_EDIT        1
  50. #define L_TRAPSIG      2
  51. #define L_MODE_ACK    4
  52. #define    L_SOFT_TAB    8
  53. #define    L_LIT_ECHO    16
  54. #define    L_MODE_MASK    31
  55.  
  56. /* these are the local keys, defined right before our very eyes!! */
  57. /* used for line-mode negotiations */
  58. #define SLC_NOSUPPORT    0
  59. #define SLC_CANTCHANGE    1
  60. #define SLC_VALUE        2
  61. #define SLC_DEFAULT        3
  62. #define SLC_LEVELBITS    3
  63. #define SLC_AWK            128
  64.  
  65. #define    SLC_MAX            18
  66.  
  67. #define SLC_SYNCH        1
  68. #define SLC_BRK            2
  69. #define SLC_IP            3
  70. #define SLC_AO            4
  71. #define SLC_AYT            5
  72. #define SLC_EOR            6
  73. #define SLC_ABORT        7
  74. #define SLC_EOF            8
  75. #define SLC_SUSP        9
  76. #define SLC_EC            10
  77. #define SLC_EL           11
  78. #define SLC_EW           12
  79. #define SLC_RP            13
  80. #define SLC_LNEXT        14
  81. #define SLC_XON            15
  82. #define SLC_XOFF        16
  83. #define SLC_FORW1        17
  84. #define SLC_FORW2        18
  85.  
  86. #define    substate    tw->substat
  87.